#ifndef _DevicesFlash_H_
#define _DevicesFlash_H_



#define FLASH_PAGE_SIZE     ((uint32_t)512)

#define FLASH_BASE_ADDR         ((uint32_t)0x08000000)

/* 4k Byte */
#define FLASH_BOOTLOADER_ADDR   (FLASH_BASE_ADDR        + 1024 * 0)
/* 28k Byte */
#define FLASH_APP_ADDR          (FLASH_BOOTLOADER_ADDR  + 1024 * 4)
/* 28k Byte */
#define FLASH_APP_BACK_ADDR     (FLASH_APP_ADDR         + 1024 * 28)
/* 4k Byte */
#define FLASH_USER_ADDR         (FLASH_APP_BACK_ADDR    + 1024 * 28)

#define FLASH_USER_MAX_ADDR     (FLASH_BASE_ADDR        + 1024 * 64)



int8_t cFlashWriteDatas(uint32_t uiAddress, uint8_t *pucBuff, int32_t iLength);
int8_t cFlashReadDatas(uint32_t uiAddress, uint8_t *pucBuff, int32_t iLength);


#endif
